#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include <QTimer>
class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    //    explicit MyCoin(QWidget *parent = nullptr);
    //查看传金币还是银币
    MyCoin(QString btnIMG);

//    void coin_turn();
    void changeFlag();

    //金银币标志
    bool flag;
    bool Is_Turning = false;
    int PosX;
    int PosY;

    int i=0;
    int j=7;

    QTimer *timer1;
    QTimer *timer2;

    bool is_Win= false;
    QString str[8] = {":/res/Coin0001.png",":/res/Coin0002.png",":/res/Coin0003.png",":/res/Coin0004.png",
    ":/res/Coin0005.png", ":/res/Coin0006.png",":/res/Coin0007.png",":/res/Coin0008.png",};

    //重写按下和释放
    void mousePressEvent(QMouseEvent *e);

signals:

};

#endif // MYCOIN_H
